
import request from '@/utils/request.js'

/**
 * 获取搜搜建议
 * @param {*} q  搜索关键词
 * @returns
 */
export function getAllChannels (q) {
  return request({
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}

/**
 *
 * @param {*} {page,per_page,q}
 * @returns
 */
export function getSeachResult (params) {
  return request({
    url: '/v1_0/search',
    params
  })
}
